#include <iostream>
using namespace std;
main()
{
	void sort(int &i,int &j,int &k);
	int a,b,c,a1,b1,c1;
	cout<<"Input 3numbers"<<endl;
	cin>>a>>b>>c;
	a1=a,b1=b,c1=c;
	sort(a1,b1,c1);
	cout<<"The sorted numbers are: "<<a1<<" "<<b1<<" "<<c1<<endl;
	return 0;
}

void sort(int &i,int &j,int &k)
{
	void change(int &m,int &n);
	change(i,j);
	change(i,k);
	change(j,k);
}

void change(int &m,int &n)
{
	int temp;
	if(m>n)
	{
		temp=m;
		m=n;
		n=temp;
	}
}